home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 6: Level 6
/
17 Bit - Level 6 (1998)(Epic Marketing)[!].iso
/
quartz
/
q1082.dms
/
q1082.adf
/
src.lzh
/
Fig
/
font.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-18
|
973b
|
39 lines
/*
* FIG : Facility for Interactive Generation of figures
*
* Copyright (c) 1988 by Supoj Sutanthavibul (supoj@sally.UTEXAS.EDU)
* January 1988.
*
* %W% %G%
*/
extern PIX_FONT canvas_font;
extern PIX_FONT bold_font;
extern PIX_FONT roman_font;
#ifdef AMIGA
#define char_height(font) ((font)->tf_YSize)
#define char_width(font) ((font)->tf_XSize)
#define char_advance(font,char) ((font)->tf_XSize)
#else
#ifndef X11
#define char_height(font) ((font)->pf_defaultsize.y)
#define char_width(font) ((font)->pf_defaultsize.x)
#define char_advance(font,char) ((font)->pf_char[(char)].pc_adv.x)
#else
#define NORMAL_FONT "fixed"
#define BOLD_FONT "8x13bold"
#define char_height(font) ((font)->max_bounds.ascent + (font)->max_bounds.descent)
#define char_width(font) ((font)->max_bounds.width)
#define char_advance(font,char) (\
((font)->per_char)?\
((font)->per_char[(char)].width):\
((font)->max_bounds.width))
#endif X11
#endif AMIGA